package com.music.service;

import com.github.pagehelper.PageInfo;
import com.music.pojo.SingleSong;
import com.music.pojo.UserInfo;
import com.music.utils.ResultInfo;

import java.util.List;
import java.util.Map;

public interface SingleSongService{
    ResultInfo SingleSongQuery(String id);

    PageInfo<SingleSong> findSingleSongsBySearch(String search,Integer pageNum);

    SingleSong findWithCommentsAndSingerByMid(String mid);

    Integer isFavorite(Integer mid, Integer uid);

    Map<Integer, Map<Integer,Integer>> findUser_singleSongInfo(List<UserInfo> userInfoList);

    Integer findSongsNumCount(Integer sid);

    PageInfo<SingleSong> findSoaringSongs(Integer pageNum);
    PageInfo<SingleSong> findNewSongs(Integer pageNum);
    PageInfo<SingleSong> findHotSong(Integer pageNum);

    List<SingleSong> findUserFollowSingerSongs(Integer uid);

    SingleSong findSingleSongById(Integer id);
}
